home *** CD-ROM | disk | FTP | other *** search
- x%=1:y%=1
- ver$="$VER: Part of HTML-Creator V1.24"
- DIM text0$(1),text1$(1),text2$(1),text3$(1),text4$(1),text5$(1),text6$(1)
- DIM text7$(1),text8$(1), text9$(1),text10$(1), text11$(1)
-
- text0$(0)="Gefundene Fehler:"
- text0$(1)="Errors found:"
-
- text1$(0)="================="
- text1$(1)="============="
-
- text2$(0)="Die Erweiterung (*.ERW) ist länger als 3 Zeichen."
- text2$(1)="The Extension (*.EXT) is longer than 3 characters."
-
- text3$(0)="Der Dateiname ist zu lang."
- text3$(1)="The file name is too long."
-
- text4$(0)="Es ist nur 1 '.' erlaubt."
- text4$(1)="Only 1 '.' is allowed."
-
- text5$(0)="Der '.' steht an der"
- text6$(0)=". Stelle. Er darf aber nur an der 2. bis 9. Stelle stehen."
-
- text5$(1)="The '.' is at position number"
- text6$(1)=", but may be between position number 2 to 9, only."
-
- text7$(0)="Es ist kein '"
- text8$(0)="' im Dateinamen erlaubt."
-
- text7$(1)="A '"
- text8$(1)="' is not allowed in the file name."
-
- text9$(0)="Gefundene Fehler wurden in der Datei 'ram:Errors.txt' abgespeichert."
- text9$(1)="Any errors found, have been stored in 'ram:Errors.txt'."
-
- text10$(0)="Bitte drücken Sie"
- text10$(1)="Please press"
-
- text11$(0)="Lese Zeile: "
- text11$(1)="Processing line: "
- ON ERROR GOTO fehler
- OPEN "I",#1,"DOS.info"
- WHILE NOT EOF(1)
- INPUT#1,x$
- daus%=INSTR(x%,x$,"(DEUTSCH)")
- 20 dein%=INSTR(x%,x$,"DEUTSCH")
- IF dein%=daus%+1 THEN x%=daus%+2:GOTO 20
- eaus%=INSTR(y%,x$,"(ENGLISH)")
- 40 eein%=INSTR(y%,x$,"ENGLISH")
- IF eein%=eaus%+1 THEN y%=eaus%+2:GOTO 40
- WEND
- CLOSE
- IF dein%>daus%+1 THEN lan%=0
- IF eein%>eaus%+1 OR (dein%=0 AND eein%=0) THEN lan%=1
- start:file&=0:errors&=0
- IF lan%=0 THEN
- INPUT "Pfad/Dateiname: ",filename$
- ELSE
- INPUT "Path/file name: ",filename$
- END IF
- OPEN "I",#1,filename$
- OPEN "O",#2,"ram:Errors.txt"
- PRINT#2,text0$(lan%)
- PRINT#2,text1$(lan%)+CHR$(13)+CHR$(10)+CHR$(10)
- LOCATE 3,1:PRINT text11$(lan%):leng%=LEN(text11$(lan%))
- WHILE NOT EOF(1)
- punkt%=0:file&=file&+1
- LINE INPUT#1,x$
- LOCATE 3,leng%:PRINT file&
- IF x$>"" THEN
- IF MID$(x$,LEN(x$)-2,1)=":" THEN
- FOR x%=1 TO 13
- a$=MID$(x$,x%,1):IF a$="." THEN punkt%=punkt%+1
- IF punkt%=1 AND x%<8 THEN
- GOSUB createy
- IF LEN(y$)-x%>3 THEN PRINT#2,y$+": "+text2$(lan%)+CHR$(10):errors&=errors&+1
- END IF
- IF x%=13 AND a$>CHR$(32) THEN
- GOSUB createy0
- PRINT#2,y$+": "+text3$(lan%)+CHR$(10)
- END IF
- IF punkt%=2 THEN
- GOSUB createy0
- PRINT#2,y$+": "+text4$(lan%)+CHR$(10):punkt%=-12
- END IF
- IF a$="." AND (x%=10 OR x%=11 OR x%=12) THEN
- GOSUB createy0
- PRINT#2,y$+": "+text5$(lan%)+STR$(x%)+text6$(lan%)+CHR$(10)
- END IF
- IF a$="?" THEN GOSUB founderr
- IF a$="," THEN GOSUB founderr
- IF a$=";" THEN GOSUB founderr
- IF a$="=" THEN GOSUB founderr
- IF a$="*" THEN GOSUB founderr
- IF a$="\" THEN GOSUB founderr
- IF a$="+" THEN GOSUB founderr
- IF a$=CHR$(34) THEN GOSUB founderr
- IF a$="<" THEN GOSUB founderr
- IF a$=">" THEN GOSUB founderr
- IF a$="[" THEN GOSUB founderr
- IF a$="]" THEN GOSUB founderr
- NEXT
- END IF
- END IF
- WEND
- PRINT#2,text0$(lan%)+STR$(errors&)
- CLOSE:CLS:PRINT:PRINT text9$(lan%):PRINT:PRINT
- PRINT text10$(lan%)+" <RETURN>."
- 1 a$=INKEY$: IF a$="" THEN SLEEP
- IF a$<>CHR$(13) THEN GOTO 1
- SYSTEM
- founderr:
- GOSUB createy0
- PRINT#2,y$;": "+text7$(lan%)+a$+text8$(lan%)+CHR$(10)
- RETURN
- createy0:
- errors&=errors&+1
- createy:
- size%=0:posi%=1
- IF LEN(x$)>=29 THEN
- y$=LEFT$(x$,LEN(x$)-28)
- ELSE
- y$=x$
- END IF
- FOR a%=LEN(y$) TO 1 STEP -1
- posi%=a%
- b$=MID$(y$,a%,1)
- IF size%=0 AND b$=CHR$(32) THEN size%=1
- IF size%=1 AND b$<>CHR$(32) THEN a%=1:size%=-1
- NEXT
- IF size%=-1 THEN y$=LEFT$(y$,posi%)
- RETURN
- fehler:
- fehler%=ERR
- IF lan%=-1 AND fehler%=53 THEN lan%=1:RESUME start
- RESUME fehler2
- fehler2:
- IF lan%=0 THEN
- IF fehler%<>53 THEN
- PRINT "Es ist ein Fehler Nr. ";fehler%;" aufgetreten. Beende Programm.":PRINT "Bitte drücken Sie eine Taste."
- ELSE
- PRINT "Datei nicht gefunden."
- END IF
- ELSE
- IF fehler%<>53 THEN
- PRINT "An error number ";fehler%;" occurred. Aborting.":PRINT "Please press any key."
- ELSE
- PRINT "File not found."
- END IF
- END IF
- ende:
- a$=INKEY$:IF a$="" THEN SLEEP
- IF a$>"" THEN SYSTEM
- GOTO ende
-